package org.cuit.lmq.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.cuit.lmq.domain.po.Menu;
import org.cuit.lmq.mapper.MenuMapper;
import org.cuit.lmq.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Seon
 * @date 2023/3/5
 */
@Slf4j
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Resource
    private MenuMapper menuMapper;

    @Override
    public List<String> getPermissionById(long userId) {
        return menuMapper.selectPermsByUserId(userId);
    }
}
